<?php
namespace app\index\controller;

use think\Controller;

class Startbroadcastserver extends Controller
{

    public function index()
    {
        $path = "../broadcastServer/server.js";
        exec("node " . $path . " 2>&1");
    }
}